package com.atguigu.team.domain;

public class NoteBook implements Equipment{
    private String model; //机器的型号
    private double price;//机器的价格
    @Override
    public String getDescription(){
        return model+"("+price+")";
    }
    //set方法
    public void setModel(String model){
        this.model=model;
    }
    public void setPrice(double price){
        this.price=price;
    }
    //get方法
    public String getModel()
    {
        return model;
    }
    public double getPrice(){
        return price;
    }
    //构造器
    public NoteBook(){

    }
    public NoteBook(String model,double price){
        this.model=model;
        this.price=price;
    }
}
